package com.xinruke.hostels.system.manage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author jinzhi
 */
@ApiModel("楼层详情结果DTO")
@Data
public class FloorDetailQueryResultDTO {

    @ApiModelProperty(value = "楼层id", required = true)
    @NotNull(message = "楼层id不能为空")
    private Integer id;

    /**
     * 楼层
     */
    @ApiModelProperty(value = "楼层", required = true)
    @NotNull(message = "楼层不能为空")
    private String mingcheng;

    /**
     * 楼层号
     */
    @ApiModelProperty(value = "楼层号")
    private Integer loucenghao;

    /**
     * 锁号
     */
    @ApiModelProperty(value = "锁号")
    private String suohao;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", required = true)
    @NotNull(message = "描述不能为空")
    private String miaoshu;


    /**
     * 缩略图
     */
    @ApiModelProperty(value = "缩略图", required = true)
    @NotNull(message = "缩略图不能为空")
    private String suoluetu;

    /**
     * 楼栋ID
     */
    @ApiModelProperty(value = "楼栋ID", required = true)
    private Integer loudongId;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Integer chuangjianrenId;

    /**
     * 更新人ID
     */
    @ApiModelProperty(value = "更新人ID")
    private Integer gengxinrenId;

    /**
     * 酒店ID
     */
    @ApiModelProperty(value = "酒店ID", required = true)
    private Integer jiudianId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date chuangjianshijian;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date gengxinshijian;

    /**
     * 楼层房间详情列表
     */
    @ApiModelProperty(value = "楼层房间详情列表")
    private List<RoomCountByFangxingResultDTO> roomCountByFangxingResultDTOList;


}
